<?php
echo $inner;
?>

<?php
if ($t['comments_allowed']):

    echo $slots['comments'];
?>

<div class="post-reply-link"><a href="" onclick="show_comment_form('#cid', 0); return false;">post new comment</a></div>

<div id="cid">
    <div class="comment-form form hidden" id="comment_form">
<?php
    echo $slots['comment_form'];
?>
    </div>
</div>

<?php
endif;
